//
//  WBDemoViewController.swift
//  小荣荣新浪微博
//
//  Created by zzr on 2018/4/20.
//  Copyright © 2018年 zzr. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
    }
    
    @objc fileprivate func showNext() {
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    
    override func setupUI() {
        super.setupUI()
        //navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: .plain, target: self, action: #selector(showNext))
        
        let anotherTitle = "第\(navigationController?.childViewControllers.count ?? 0)个"
        navItem.titleView = UILabel.navigationItemTitleLabel(title: anotherTitle)
        let bbi = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
        navItem.rightBarButtonItem = bbi
    }
}

extension WBDemoViewController {
    
}
